<?php
$client = new Swoole\Client(SWOOLE_SOCK_TCP);
$client->connect('127.0.0.1','9501',10);
$client->send('我是一个客户端,我发过去的数据');
$buffer = $client->recv(90000);
$client->close();
echo $buffer."\n";